RebarConstraint.ReplaceReferenceTargets
Description:
Replaces the current set of references, the type of constraint and the offset value, with the newly provided ones. Will throw exception if this is a constraint for Shape Driven Rebar.
Replaces the current set of references, the type of constraint and the offset value, with the newly provided ones. Will throw exception if this is a constraint for Shape Driven Rebar.
Overloads (2):
ReplaceReferenceTargets(RebarConstrainedHandle,IList[Reference],Boolean,Double)
[ObsoleteAttribute("This property is deprecated in Revit 2027 and might be removed in a future version. Use the new signature of the RebarConstraint.replaceReferenceTargets.")]
public void ReplaceReferenceTargets(
RebarConstrainedHandle handle,
IList<Reference> targetReferences,
bool isConstraintToCover,
double offsetValue
)
-
handleThe RebarConstrainedHandle that has this constraint.
-
IList<Reference>targetReferencesThe references to which the rebar handle will be constrained. This collection must contain one or more references to faces of elements that can host rebar.
-
BooleanisConstraintToCoverIf true the RebarConstraintType will be set to ToCover, otherwise RebarConstraintType will be set to FixedDistanceToHostFace.
-
DoubleoffsetValueThe distance from references to the rebar handle.
-
handle is no longer valid. -or- targetReferences is empty. -or- targetReferences do not represent faces from structurals that can host rebar.
-
A non-optional argument was null
-
Constrained rebar isn't a Free Form Rebar element. -or- The RebarConstraint is not of RebarConstraintType 'FixedDistanceToHostFace' or 'ToCover'.